<html lang="zh-cn">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <meta content="email=no" name="format-detection">
    <title>下载刹一脚乘客端</title>
    <script type="application/javascript" charset="utf-8">
        (function () {
            console.log('this is a function mothed')
            var flag = 1;
            if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) { //判断iPhone|iPad|iPod|iOS
                flag = 2;
                //location = 'https://itunes.apple.com/cn/app/%E5%88%B9%E4%B8%80%E8%84%9A/id1149278068?mt=8';
            } else { // if (/(Android)/i.test(navigator.userAgent))判断Android
                flag = 3;
                //location = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.carpool.pass&ckey=CK1371145825133';
            }
            return flag
        })();
    </script>
</head>

<body>
    马上跳转
</body>

</html>